package com.cskaoyan.javase.basic._2variable._3notice;

/**
 * 牛刀小试
 * @since 17:52
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo4 {
    public static void main(String[] args) {
        // char c = 'a';
        // System.out.println(c + 0);

        System.out.println('a'); // a
        // char类型参与运算,是编码值参与运算
        System.out.println('a' + 1); // 98
        System.out.println("hello" + 'a' + 1); // helloa1
        System.out.println('a' + 1 + "hello"); // 98hello
        System.out.println("5 + 5 = " + (5 + 5)); // 5 + 5 = 10
        System.out.println(5 + 5 + " = 5 + 5"); // 10 = 5 + 5
        System.out.println(5 + 5.0); // 10.0
        System.out.println(5 + "5" + 5.0); // 555.0

    }
}
